package com.xh.audit.vo.webform;

import com.mybatisflex.core.query.QueryWrapper;
import com.xh.audit.entity.Regulation;
import com.xh.audit.entity.table.RegulationTableDef;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = true)
public class RegulationQuery extends PageParams<Regulation> {

    private String regulationName;

    public QueryWrapper queryWrapperBuild() {
        QueryWrapper queryWrapper = QueryWrapper.create()
                .and(RegulationTableDef.REGULATION.REGULATION_NAME.likeLeft(regulationName));
        return queryWrapper;
    }
}
